package com.github.common.enums.impl;

import lombok.AllArgsConstructor;
import lombok.Getter;
import com.github.common.enums.common.CodedEnum;

@Getter
@AllArgsConstructor
public enum RunStatusEnum implements CodedEnum<Integer> {

    TO_START(0, "待启动"),
    STARTING(1, "启动中"),
    STARTED(2, "在线"),

    TO_SUSPEND(10, "待挂起"),
    SUSPENDING(11, "挂起中"),
    SUSPENDED(12, "挂起(已启动但不对外提供服务)"),

    TO_STOP(20, "待停机"),
    STOPPING(21, "停机中"),
    STOPPED(22, "已停机"),
    ;

    private final Integer code;
    private final String desc;

}
